<template>
    <div>
        <van-row type="flex">
            <van-col span="8"><van-button type="primary" @click="$router.push('classList')">分类维护</van-button></van-col>
            <van-col span="8"><van-button type="primary" @click="$router.push('addCom')">添加商品</van-button></van-col>
            <van-col span="8"><van-button type="primary">货源维护</van-button></van-col>
        </van-row>

        <van-card
                title="标题"
                desc="描述"
                num="2"
                price="2.00"
                :thumb="imageURL"
        >
            <div slot="footer">
                <van-button size="mini">按钮1</van-button>
                <van-button size="mini">按钮</van-button>
            </div>
        </van-card>
        <van-card
                title="标题"
                desc="描述"
                num="2"
                price="2.00"
                :thumb="imageURL"
        >
            <div slot="footer">
                <van-button size="mini">按钮1</van-button>
                <van-button size="mini">按钮</van-button>
            </div>
        </van-card>
    </div>
</template>

<script>
    export default {
        name: "AddCommodity",
        data(){
            return {
                imageURL:'https://img.alicdn.com/tps/i4/TB1XAzQJH9YBuNjy0FgSuwxcXXa.jpg_240x240q90.jpg'
            }
        }
    }
</script>

<style scoped>
    .van-row{margin-top:10px;}
    .van-col{text-align: center;}
</style>